package parser;


public class Variable {
	private String variable_name;
	private String universe_name;
	private String variable_type;
	
	public Variable(String variable_name, String universe_name, String variable_type)
	{
		this.variable_name = variable_name;
		this.universe_name = universe_name;
		this.variable_type = variable_type;		/** "in" of "out" */
	}
	
	public String getVarName()
	{
		return variable_name;
	}

	public String getUniName()
	{
		return universe_name;
	}
	
	public String getVarType()
	{
		return variable_type;
	}
	
	public void setVarType(String name)
	{
		if(name.equals("in") || name.equals("out")) variable_type = name;
		else
		System.out.println("Error: variable type " + name + " does not exist.");
	}
}
